// pages/component/tabbar/tabbar.js
Component({
    methods: {
      switchTab(event) {
        const path = event.currentTarget.dataset.path
        wx.switchTab({ url: path })
      }
    }
  })
  